package com.gdcvi.scan;

public class TestServer {
    public static void main(String[] args)throws Exception {
        Hand.MAX_CODE = 4;
        System.out.println("等待玩家加入...");
        HandConnection connection = new GameServer(10086);
        System.out.println("一个玩家加入，等待对方出拳...");
        Player player1 = new RemotePlayer(connection);
        Player player2 = new Person();
        player2 = new 发送器(new InputReminderNO2(player2),connection);
        Hand hand1  =  player1.chuQuan();
        Hand hand2  =  player2.chuQuan();
        int result = hand1.equals(hand2);
        System.out.print(result);
        connection.close();
    }
}
